<template>
  <baidu-map class="map"
             :center="{lng: 116.404, lat: 39.915}"
             :zoom="14"
             mapType="BMAP_SATELLITE_MAP">
    <!--    <bm-control>-->
    <!--      <button @click="toggle('polyline')">{{ polyline.editing ? '停止绘制' : '开始绘制' }}</button>-->
    <!--    </bm-control>-->
    <!--    <bm-polyline :path="path" v-for="path of polyline.paths"></bm-polyline>-->
  </baidu-map>

</template>
<script>
export default {
  data() {
    return {
      polyline: {
        editing: false,
        paths: []
      }
    }
  },
  methods: {

  }
}
</script>
<style>
.map {
  height: 100vh;
  width: 100%;
}
</style>
